Assignemnt #81 and 80th program
Code
///Name: Derrick Andreasen
///Period: 7
///Program name: 80th Program
///File name: Eighprog.java
///Date Finished:1/6/2016
import java.util.Scanner;
import java.util.Random;
public class Eighprog
{
public static void main( String[] args )
{
Scanner keyboard = new Scanner(System.in);
int z, x, c, n;
System.out.print( "count from: " );
z = keyboard.nextInt();
System.out.print( "count to: " );
x = keyboard.nextInt();
System.out.print( "count by: " );
c = keyboard.nextInt();
System.out.print( "" );
for ( n = z; n <= x; n = n + c )
{
System.out.print( n + " " );
}
}
}
Picture of the output